package com.ruoyi.security.mapper;

import com.ruoyi.security.domain.AfChemicals;

import java.util.List;

/**
 * 危化品Mapper接口
 *
 * @author felix
 * @date 2021-10-11
 */
public interface AfChemicalsMapper {
    /**
     * 查询危化品
     *
     * @param id 危化品ID
     * @return 危化品
     */
     AfChemicals selectAfChemicalsById(String id);

    /**
     * 查询危化品列表
     *
     * @param afChemicals 危化品
     * @return 危化品集合
     */
     List<AfChemicals> selectAfChemicalsList(AfChemicals afChemicals);

    /**
     * 新增危化品
     *
     * @param afChemicals 危化品
     * @return 结果
     */
     int insertAfChemicals(AfChemicals afChemicals);

    /**
     * 修改危化品
     *
     * @param afChemicals 危化品
     * @return 结果
     */
     int updateAfChemicals(AfChemicals afChemicals);

    /**
     * 删除危化品
     *
     * @param id 危化品ID
     * @return 结果
     */
     int deleteAfChemicalsById(String id);

    /**
     * 批量删除危化品
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
     int deleteAfChemicalsByIds(String[] ids);
}
